package com.study4j.oss.qiniu.model;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * @description 七牛云存储配置属性
 * @author Jiangbin
 * @date 2019年7月26日 下午2:32:05
 * @version 1.0.0
 */
@Data
@ConfigurationProperties(prefix = "qiniu")
@PropertySource("classpath:qiniu.properties")
@ConditionalOnProperty(prefix="oss",name = "type", havingValue = "qiniu")
@Component
public class QiniuProperties {

	private String accessKey;

	private String secretKey;

	private String bucket;

	private String prefix;
}
